﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class FinanceCenter_Header : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        this.lbMondil.Text = PublicFunction.GetOptionsAsString("公司名称");

        this.lbUserName.Text = _User.RealityName.ToString();
        if (_User.Competences[Competences.Administrator])
        {
            this.lbLevel.Text = "管理员";
        }

        else
        {
            this.lbLevel.Text = "服务中心代理商";
        }
    }

    #region Web 窗体设计器生成的代码

    override protected void OnInit(EventArgs e)
    {
        isRequestLogin = true;
        RequestCompetences = Competences.BuildCompetencesList(Competences.Finance);

        base.OnInit(e);
    }

    #endregion

    protected void lbExit_Click(object sender, EventArgs e)
    {
        this.Session.RemoveAll();

        this.Response.Write("<script language=javascript>window.top.document.location.href='../Default.aspx';</script>");
    }
}
